package com.design.享元模式;

public abstract class Flyweight {

	//内部状态
	public String intrinsic;
	
	protected final String extrinsic;
	
	public Flyweight(String extrinsic) {
		this.extrinsic = extrinsic;
	}
	
	public abstract void operate(int extrinsic);
	
	public String getIntrinsic() {
		return intrinsic;
	}
	
	public void setIntrinsic(String intrinsic) {
		this.intrinsic = intrinsic;
	}
	
	
	
}

